{extend  name="manage@public/layout" /}
{block name="content"}
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>商户列表</h5>
                        <div class="ibox-tools">
                            <a class="collapse-link" onclick="location.replace(location.href);">
                                <i class="fa fa-refresh"></i>
                            </a>
                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="table-responsive">
                            <table class="table table-striped table-bordered">
                                <thead>
                                    <tr>
                                        <th>ID</th>
                                        <th>商户号</th>
                                        <th>商户名称</th>
                                        <th>状态</th>
                                        <th>入金</th>
                                        <th>出款</th>
                                        <th>创建时间</th>
                                        <th>操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    {volist name="list" id="vo"}
                                    <tr>
                                        <td>{$vo.id}</td>
                                        <td>{$vo.mch}</td>
                                        <td>{$vo.mch_name}</td>
                                        <td>
                                            <input data-id="{$vo.id}" data-type="1" data-url="{:url('/web/user/is_mch')}" {eq  name="vo.status" value="1"}checked{/eq}  type="checkbox" class="js-switch"  />
                                        </td>
                                        <td>
                                            <input data-id="{$vo.id}" data-type="rj" data-url="{:url('/web/user/is_mch')}" {eq  name="vo.rukuan" value="1"}checked{/eq}  type="checkbox" class="js-switch"  />
                                        </td>
                                        <td>
                                            <input data-id="{$vo.id}" data-type="ck" data-url="{:url('/web/user/is_mch')}" {eq  name="vo.chukuan" value="1"}checked{/eq} type="checkbox" class="js-switch"  />
                                        </td>
                                        <td>{$vo.create_time}</td>
                                        <td>
                                            <a href="{:url('/web/user/configChannel',['id'=>$vo.id])}" type="button"  class="btn btn-sm bt-bank-del btn-white"><i class="fa fa-wifi">&nbsp;配置渠道</i></a>
                                        </td>
                                    </tr>
                                    {/volist}
                                </tbody>
                            </table>
                            <div style="float:right;" class="dataTables_paginate paging_simple_numbers" id="DataTables_Table_0_paginate">
                                {$page|raw}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div> 
    {/block}

